Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

345
Vistas
What does "return event.keyCode !== 69" mean?

I have this snippet of code in my html file:

<input autocomplete="off" autofocus name="month" placeholder="Month" type="number" onkeydown="return event.keyCode !== 69">

It works exactly as I want it to - doesn't let the user put "e" in a form when they type in their birthday. But how exactly does it work? What does "!== 69" return, and how does it prevent the letter "e" from appearing on the screen?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It works this way because the number 69 indicates the code for the letter "E" for Keycode values, as you can see in this link: https://css-tricks.com/snippets/javascript/javascript-keycodes/
about 4 years ago · Airton Teixeira Vasconcelos Junior Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda